﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace ProtocolWorkflows.InboundDocumentslWF
{
    public sealed partial class InboundDocumentslWF
    {
        #region Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken1 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken2 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind12 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Runtime.CorrelationToken correlationtoken3 = new System.Workflow.Runtime.CorrelationToken();
            System.Workflow.ComponentModel.ActivityBind activitybind13 = new System.Workflow.ComponentModel.ActivityBind();
            this.setStateActivity6 = new System.Workflow.Activities.SetStateActivity();
            this.setStateActivity5 = new System.Workflow.Activities.SetStateActivity();
            this.FinalUpdateToItem = new System.Workflow.Activities.CodeActivity();
            this.setStateActivity2 = new System.Workflow.Activities.SetStateActivity();
            this.ifElseBranchActivity3 = new System.Workflow.Activities.IfElseBranchActivity();
            this.Return = new System.Workflow.Activities.IfElseBranchActivity();
            this.ReviewerTaskComplete = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.RouterTaskComplete = new System.Workflow.Activities.IfElseBranchActivity();
            this.ifElseActivity3 = new System.Workflow.Activities.IfElseActivity();
            this.onTaskChanged3 = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.createReviewTask = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType();
            this.ifElseActivity1 = new System.Workflow.Activities.IfElseActivity();
            this.onTaskChanged1 = new Microsoft.SharePoint.WorkflowActions.OnTaskChanged();
            this.createRouterTask = new Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType();
            this.setStateActivity1 = new System.Workflow.Activities.SetStateActivity();
            this.onWorkflowActivated1 = new Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated();
            this.eventDrivenActivity4 = new System.Workflow.Activities.EventDrivenActivity();
            this.stateInitializationActivity3 = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity2 = new System.Workflow.Activities.EventDrivenActivity();
            this.stateInitializationActivity1 = new System.Workflow.Activities.StateInitializationActivity();
            this.stateInitializationActivity4 = new System.Workflow.Activities.StateInitializationActivity();
            this.eventDrivenActivity1 = new System.Workflow.Activities.EventDrivenActivity();
            this.reviewState = new System.Workflow.Activities.StateActivity();
            this.routerState = new System.Workflow.Activities.StateActivity();
            this.finalState = new System.Workflow.Activities.StateActivity();
            this.initialState = new System.Workflow.Activities.StateActivity();
            // 
            // setStateActivity6
            // 
            this.setStateActivity6.Name = "setStateActivity6";
            this.setStateActivity6.TargetStateName = "routerState";
            // 
            // setStateActivity5
            // 
            this.setStateActivity5.Name = "setStateActivity5";
            this.setStateActivity5.TargetStateName = "finalState";
            // 
            // FinalUpdateToItem
            // 
            this.FinalUpdateToItem.Name = "FinalUpdateToItem";
            this.FinalUpdateToItem.ExecuteCode += new System.EventHandler(this.FinalUpdateToItem_ExecuteCode);
            // 
            // setStateActivity2
            // 
            this.setStateActivity2.Name = "setStateActivity2";
            this.setStateActivity2.TargetStateName = "reviewState";
            // 
            // ifElseBranchActivity3
            // 
            this.ifElseBranchActivity3.Name = "ifElseBranchActivity3";
            // 
            // Return
            // 
            this.Return.Activities.Add(this.setStateActivity6);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsReviewerReturned);
            this.Return.Condition = codecondition1;
            this.Return.Name = "Return";
            // 
            // ReviewerTaskComplete
            // 
            this.ReviewerTaskComplete.Activities.Add(this.FinalUpdateToItem);
            this.ReviewerTaskComplete.Activities.Add(this.setStateActivity5);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsReviewerTaskCompleted);
            this.ReviewerTaskComplete.Condition = codecondition2;
            this.ReviewerTaskComplete.Name = "ReviewerTaskComplete";
            // 
            // ifElseBranchActivity2
            // 
            this.ifElseBranchActivity2.Name = "ifElseBranchActivity2";
            // 
            // RouterTaskComplete
            // 
            this.RouterTaskComplete.Activities.Add(this.setStateActivity2);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsRouterTaskComplete);
            this.RouterTaskComplete.Condition = codecondition3;
            this.RouterTaskComplete.Name = "RouterTaskComplete";
            // 
            // ifElseActivity3
            // 
            this.ifElseActivity3.Activities.Add(this.ReviewerTaskComplete);
            this.ifElseActivity3.Activities.Add(this.Return);
            this.ifElseActivity3.Activities.Add(this.ifElseBranchActivity3);
            this.ifElseActivity3.Name = "ifElseActivity3";
            // 
            // onTaskChanged3
            // 
            activitybind1.Name = "InboundDocumentslWF";
            activitybind1.Path = "onTaskChanged3_AfterProperties1";
            activitybind2.Name = "InboundDocumentslWF";
            activitybind2.Path = "onTaskChanged3_BeforeProperties1";
            correlationtoken1.Name = "ReviewTaskToken";
            correlationtoken1.OwnerActivityName = "reviewState";
            this.onTaskChanged3.CorrelationToken = correlationtoken1;
            this.onTaskChanged3.Executor = null;
            this.onTaskChanged3.Name = "onTaskChanged3";
            activitybind3.Name = "InboundDocumentslWF";
            activitybind3.Path = "createReviewTask_TaskId1";
            this.onTaskChanged3.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChanged3_Invoked);
            this.onTaskChanged3.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.onTaskChanged3.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.onTaskChanged3.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // createReviewTask
            // 
            activitybind4.Name = "InboundDocumentslWF";
            activitybind4.Path = "taskContentTypeId";
            this.createReviewTask.CorrelationToken = correlationtoken1;
            this.createReviewTask.ListItemId = -1;
            this.createReviewTask.Name = "createReviewTask";
            this.createReviewTask.SpecialPermissions = null;
            activitybind5.Name = "InboundDocumentslWF";
            activitybind5.Path = "createReviewTask_TaskId1";
            activitybind6.Name = "InboundDocumentslWF";
            activitybind6.Path = "createReviewTask_TaskProperties1";
            this.createReviewTask.MethodInvoking += new System.EventHandler(this.createReviewTask_Invoked);
            this.createReviewTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            this.createReviewTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind6)));
            this.createReviewTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            // 
            // ifElseActivity1
            // 
            this.ifElseActivity1.Activities.Add(this.RouterTaskComplete);
            this.ifElseActivity1.Activities.Add(this.ifElseBranchActivity2);
            this.ifElseActivity1.Name = "ifElseActivity1";
            // 
            // onTaskChanged1
            // 
            activitybind7.Name = "InboundDocumentslWF";
            activitybind7.Path = "onTaskChanged1_AfterProperties1";
            activitybind8.Name = "InboundDocumentslWF";
            activitybind8.Path = "onTaskChanged1_BeforeProperties1";
            correlationtoken2.Name = "RouterToken";
            correlationtoken2.OwnerActivityName = "routerState";
            this.onTaskChanged1.CorrelationToken = correlationtoken2;
            this.onTaskChanged1.Executor = null;
            this.onTaskChanged1.Name = "onTaskChanged1";
            activitybind9.Name = "InboundDocumentslWF";
            activitybind9.Path = "createRouterTask_TaskId1";
            this.onTaskChanged1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onTaskChanged1_Invoked);
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind9)));
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.AfterPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind7)));
            this.onTaskChanged1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnTaskChanged.BeforePropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind8)));
            // 
            // createRouterTask
            // 
            activitybind10.Name = "InboundDocumentslWF";
            activitybind10.Path = "taskContentTypeId";
            this.createRouterTask.CorrelationToken = correlationtoken2;
            this.createRouterTask.ListItemId = -1;
            this.createRouterTask.Name = "createRouterTask";
            this.createRouterTask.SpecialPermissions = null;
            activitybind11.Name = "InboundDocumentslWF";
            activitybind11.Path = "createRouterTask_TaskId1";
            activitybind12.Name = "InboundDocumentslWF";
            activitybind12.Path = "createRouterTask_TaskProperties1";
            this.createRouterTask.MethodInvoking += new System.EventHandler(this.createRouterTask_Invoked);
            this.createRouterTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind11)));
            this.createRouterTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.TaskPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind12)));
            this.createRouterTask.SetBinding(Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType.ContentTypeIdProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind10)));
            // 
            // setStateActivity1
            // 
            this.setStateActivity1.Name = "setStateActivity1";
            this.setStateActivity1.TargetStateName = "routerState";
            // 
            // onWorkflowActivated1
            // 
            correlationtoken3.Name = "workflowToken";
            correlationtoken3.OwnerActivityName = "InboundDocumentslWF";
            this.onWorkflowActivated1.CorrelationToken = correlationtoken3;
            this.onWorkflowActivated1.EventName = "OnWorkflowActivated";
            this.onWorkflowActivated1.Name = "onWorkflowActivated1";
            activitybind13.Name = "InboundDocumentslWF";
            activitybind13.Path = "workflowProperties";
            this.onWorkflowActivated1.Invoked += new System.EventHandler<System.Workflow.Activities.ExternalDataEventArgs>(this.onWorkflowActivated1_Invoked);
            this.onWorkflowActivated1.SetBinding(Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind13)));
            // 
            // eventDrivenActivity4
            // 
            this.eventDrivenActivity4.Activities.Add(this.onTaskChanged3);
            this.eventDrivenActivity4.Activities.Add(this.ifElseActivity3);
            this.eventDrivenActivity4.Name = "eventDrivenActivity4";
            // 
            // stateInitializationActivity3
            // 
            this.stateInitializationActivity3.Activities.Add(this.createReviewTask);
            this.stateInitializationActivity3.Name = "stateInitializationActivity3";
            // 
            // eventDrivenActivity2
            // 
            this.eventDrivenActivity2.Activities.Add(this.onTaskChanged1);
            this.eventDrivenActivity2.Activities.Add(this.ifElseActivity1);
            this.eventDrivenActivity2.Name = "eventDrivenActivity2";
            // 
            // stateInitializationActivity1
            // 
            this.stateInitializationActivity1.Activities.Add(this.createRouterTask);
            this.stateInitializationActivity1.Name = "stateInitializationActivity1";
            // 
            // stateInitializationActivity4
            // 
            this.stateInitializationActivity4.Name = "stateInitializationActivity4";
            // 
            // eventDrivenActivity1
            // 
            this.eventDrivenActivity1.Activities.Add(this.onWorkflowActivated1);
            this.eventDrivenActivity1.Activities.Add(this.setStateActivity1);
            this.eventDrivenActivity1.Name = "eventDrivenActivity1";
            // 
            // reviewState
            // 
            this.reviewState.Activities.Add(this.stateInitializationActivity3);
            this.reviewState.Activities.Add(this.eventDrivenActivity4);
            this.reviewState.Name = "reviewState";
            // 
            // routerState
            // 
            this.routerState.Activities.Add(this.stateInitializationActivity1);
            this.routerState.Activities.Add(this.eventDrivenActivity2);
            this.routerState.Name = "routerState";
            // 
            // finalState
            // 
            this.finalState.Name = "finalState";
            // 
            // initialState
            // 
            this.initialState.Activities.Add(this.eventDrivenActivity1);
            this.initialState.Activities.Add(this.stateInitializationActivity4);
            this.initialState.Name = "initialState";
            // 
            // InboundDocumentslWF
            // 
            this.Activities.Add(this.initialState);
            this.Activities.Add(this.finalState);
            this.Activities.Add(this.routerState);
            this.Activities.Add(this.reviewState);
            this.CompletedStateName = "finalState";
            this.DynamicUpdateCondition = null;
            this.InitialStateName = "initialState";
            this.Name = "InboundDocumentslWF";
            this.CanModifyActivities = false;

        }

        #endregion

        private SetStateActivity setStateActivity6;

        private SetStateActivity setStateActivity2;

        private StateInitializationActivity stateInitializationActivity4;

        private IfElseBranchActivity ifElseBranchActivity3;

        private SetStateActivity setStateActivity5;

        private CodeActivity FinalUpdateToItem;

        private IfElseBranchActivity Return;

        private IfElseBranchActivity ReviewerTaskComplete;

        private IfElseActivity ifElseActivity3;

        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged onTaskChanged3;

        private EventDrivenActivity eventDrivenActivity4;

        private Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType createReviewTask;

        private StateInitializationActivity stateInitializationActivity3;

        private IfElseBranchActivity ifElseBranchActivity2;

        private IfElseBranchActivity RouterTaskComplete;

        private IfElseActivity ifElseActivity1;

        private Microsoft.SharePoint.WorkflowActions.OnTaskChanged onTaskChanged1;

        private EventDrivenActivity eventDrivenActivity2;

        private StateInitializationActivity stateInitializationActivity1;

        private Microsoft.SharePoint.WorkflowActions.CreateTaskWithContentType createRouterTask;

        private StateActivity reviewState;

        private StateActivity routerState;

        private StateActivity finalState;

        private SetStateActivity setStateActivity1;

        private Microsoft.SharePoint.WorkflowActions.OnWorkflowActivated onWorkflowActivated1;

        private EventDrivenActivity eventDrivenActivity1;

        private StateActivity initialState;






















































































































    }
}
